package com.lzc.blog.admin.controller;

import com.lzc.blog.admin.model.params.PageParam;
import com.lzc.blog.admin.service.CategoryService;
import com.lzc.blog.admin.service.TagService;
import com.lzc.blog.admin.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/categorys")
public class CategloryController {
    @Autowired
    private CategoryService categoryService;
    @PostMapping("/list")
    public Result categoryList(@RequestBody PageParam pageParam){
        return categoryService.categoryList(pageParam);
    }


}
